import Vue from 'vue'
import Vuex from 'vuex'
// 引入自己的小模块
import user from '@/store/user'
// 导入第三方插件，存储到本地存储
import createVuexAlong from 'vuex-along'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  // 注册模块
  modules: {
    user
  },
  plugins: [createVuexAlong()]
})
